We want to have the coordinate system of the created cairo surface to be
identical to the coordinate system of the node's bounds. For that, we
need to translate the cairo surface by the bounds' origin.
res = cairo_create (node->surface);
+ cairo_translate (res, -node->bounds.origin.x, -node->bounds.origin.y);
+
cairo_rectangle (res,
node->bounds.origin.x, node->bounds.origin.y,
node->bounds.size.width, node->bounds.size.height);